package task15;

import java.util.Scanner;

/**
 * @author Administrator
 */
public class Task15_1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入两个数：");
        int num1=scanner.nextInt();
        int num2=scanner.nextInt();
        int result= max(num1,num2);
        System.out.println("最大值是："+result);
    }

    private static int max(int num1, int num2) {
        int max=num1>num2?num1:num2;
        return max;
    }

}
